using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
public partial class pages_FacilityDetails : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            int id = int.Parse(Request["id"]);
            FacilityDAO daoFac = new FacilityDAO();
            IList<Facility> list = new List<Facility>();           
            list.Add(daoFac.GetFacility(id));
            rptFacility.DataSource = list; ;
            rptFacility.DataBind();

            if (IsPersolnel)
            {
                if (rptFacility.Items.Count > 0)
                {
                    ((Panel)rptFacility.Items[0].FindControl("pnlEdit")).Visible = true;
                }
            }

        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}
